<template>
	<div id="BlogHeader">
		<nav class="navbar navbar-expand-lg navbar-dark bg-primary">
		  <a class="navbar-brand" href="#">果然</a>
		  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarColor01" aria-controls="navbarColor01" aria-expanded="false" aria-label="Toggle navigation">
		    <span class="navbar-toggler-icon"></span>
		  </button>
		
		  <div class="collapse navbar-collapse" id="navbarColor01">
		    <ul class="navbar-nav mr-auto">
		      <li class="nav-item">
				  <router-link class="nav-link" to="/" exact>vue首页<span class="sr-only">(current)</span></router-link>
		        
		      </li>
			  <li class="nav-item">
			  	<router-link class="nav-link"  to="/fanyi" exact>翻译</router-link>
			  
			  </li>
			  <li class="nav-item">
			  	<router-link class="nav-link" to="/todolist" exact>To Do List</router-link>
			  
			  </li>
		      <li class="nav-item">
				  <router-link class="nav-link"  to="/blog1" exact>博客首页</router-link>
		        
		      </li>
		      <li class="nav-item">
				  <router-link class="nav-link"  to="/addblog" exact>写博客</router-link>
		        
		      </li>
		      <li class="nav-item">
		      <router-link class="nav-link" to="/about" exact>About</router-link>
		      
		      </li>
		    </ul>
		    <form class="form-inline my-2 my-lg-0">
		      <input class="form-control mr-sm-2" type="text" placeholder="Search">
		      <button class="btn btn-secondary my-2 my-sm-0" type="submit">Search</button>
		    </form>
		  </div>
		</nav>
	</div>
</template>

<script>
	export default{
		name:'BlogHeader',
	}
</script>

<style>
	.navbar-dark .navbar-nav .nav-link {
    color: #fff;
}
	.router-link-active{
		color: #fff;
    background-color: #9d3a11;
    border-color: #913610;
	border-radius: 6px;
	}
</style>
